package mode.proxy.jt;

/**
 * 静态代理模式测试
 * @author xjx
 * @date 2023/7/19 11:37
 */
public class MainTest {
    public static void main(String[] args) {
        Server sinaServer = new SinaServer();
        Server nginxProxy = new NginxProxy(sinaServer);
        System.out.println(nginxProxy.getPageTitle("http://www.sina.com.cn/"));
    }
}
